Pulse processing

ABSTRACT

A system for analyzing an analogue signal comprising randomly spaced events, the event having an event height, comprises:
         Converting the signal to a series of samples S(t), with t the moment of sampling, thereby forming a sampled, discrete time signal,   Detecting the presence of an event, the event detected at t=T,   Estimating the event height,   Using a model ( 412,  FIG.  5 ) to estimate a noise contribution N(t) for t=(T−Δ 1 ) to t=(T+Δ 2 ), the noise contribution derived from samples S(t) with t≦(T−Δ 1 ) and/or samples S(t) with t≧(T+Δ 2 ), with Δ 1  and Δ 2  predetermined or preset time periods having a value such that the event has a negligible contribution to samples taken before (T−Δ 1 ) or after (T+Δ 2 ),   Estimating the event height E by integrating the series of samples from (T−Δ 1 ) to (T+Δ 2 ) minus the noise contribution for said samples,       

         E=Σ   t=(T−Δ     1   ) t=(T+Δ   2 ) S ( t )−Σ t=(T−Δ     1   ) t=(T+Δ   2 ) N ( t )=Σ t=(T−Δ     1   ) t=(T+Δ   2 ) [S ( t )− N ( t )].

The invention relates to a method for analyzing an analogue signal comprising randomly spaced events, the method comprising:

-   -   converting the signal to a series of samples S(t), with t the         moment of sampling, thereby forming a sampled, discrete time         signal,     -   detecting the presence of an event, the event detected at t=T,     -   estimating the event height using a number of samples preceding         the event and a number of samples following S(T).

The invention further relates to an apparatus equipped to perform the method.

When an X-ray photon or an electron hit a semiconductor detector, a number of electron-hole pairs are generated in the detector. By biasing the detector, either by an externally applied voltage or by a built-in internal field due to doping of the semiconductor material, the electrons are attracted to the anode or the holes are attracted to the cathode. This results in a pulse. This pulse can be detected, preferably after first amplifying the signal, for example with a FET amplifier. By now detecting the pulse height the energy of the X-ray photon or electron can be determined. As known to the skilled person the energy of an X-ray photon is an indication of the element that emitted said photon.

European patent application no. EP2653892A1 describes a method for analyzing the signal of a Silicon Drift Detector (SDD) for X-ray detection in a charged particle apparatus. The signal is analyzed to detect steps, estimating the level of the signal before each step and after each step and using these estimates estimating the step height by subtracting the two levels from each other. The level before each step is estimated by averaging (integrating) the signal over time: the longer the averaging, the lower the variance in the signal. However, the maximum integration time is limited to avoid noise contributions stemming from low-frequency noise, leakage, etc.

It is noted that the steps are the result of the (analogue) integration of pulses by the FET amplifier.

Another such method is known from U.S. Pat. No. 7,966,155B2.

This US patent a method comprising converting the signal to a series of samples, detecting the presence of a step, estimate the signal level before the step and after the step by filtering the signal by using a switchable integrator, and estimating the step height by subtracting the two levels from each other. The integration time of the two integrators is selectable dependent on the time period between said pulse and the preceding and following pulses.

It is known that an X-ray photon or an electron can be detected in, for example, a semiconductor device (assuming the photon or electron is sufficiently energetic). Both the method described in the EP patent application and in the US patent can be used to determine the energy of an X-ray photon detected in a semiconductor device (for example a SDD) or a Geiger-Müller device, or to detect the energy of an electron detected in a semiconductor detector.

Both the method described in the EP patent application and in the US patent try to determine the signal levels before and after an event as good as possible. If the time between events is small, the variance of the estimates of the signal level between the events is high due to signal-to-noise problems. Noise sources of a signal of a (FET) amplifier can be: series noise, parallel noise and 1/f at the amplifier input, and in the case of X-ray and electron detectors Fano noise due to the uncertainty of the number of electrons generated in an event (incoming photon or electron).

Both the method described in the EP patent application and in the US patent give a less reliable value for the event height when the time between events decreases. For both methods operating at high count rate is therefore coupled to less reliable values for the event height.

There is a need for a method allowing more reliable estimation of the event height at a high count rate.

To that end the method according to the invention is characterized in that

-   -   a model is used to estimate a noise contribution N(t) for         t=(T−Δ₁) to t=(T+Δ₂), the noise contribution derived from         samples S(t) with t≦(T−Δ₁) and/or samples S(t) with t≧(T+Δ₂),         with Δ₁ and Δ₂ predetermined or preset time periods, Δ₁ having a         value such that the event has a negligible contribution to         samples taken before (T−Δ₁) and Δ₂ having a value such that the         event has a negligible contribution to samples taken after         (T+Δ₂),     -   the event height E is estimated by integrating the series of         samples from (T−Δ₁) to (T+Δ₂) minus the noise contribution for         said samples,

E=Σ _(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)S(t)−Σ_(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)N(t)=Σ_(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)[S(t)−N(t)].

The invention is based on the insight that the noise during the time interval that the event occurs can, at least partly, be estimated from samples following and/or preceding the event. By integrating the signal over the period that the event occurs and subtracting the noise from it, a more accurate estimate of the event height is made. In other words: the invention is based on the (inventive) use of the correlation in the noise.

A non-exhaustive list of signal sources is:

-   -   a silicon x-ray detector (such as a PIN diode or a SSD) for         detecting X-rays,     -   an electron detector for use in a particle-optical apparatus,     -   an acoustic detector such as a microphone for detecting, for         example, sonic ‘booms’     -   a hydrophone for detecting, for example, ‘pings’ from electronic         devices such as the black boxes of airplanes,     -   a seismic detector,     -   a superconducting bolometer for detecting radiation,     -   a scintillation detector.

The signal may be sampled by a sample & hold device to be processed in a device using a bucket-brigade-delay-line, or by passing it through an analogue-digital converter for processing in the digital domain.

Before the signal is sampled, it may be filtered. By, for example, differentiating the signal, the dynamic range of the signal to be sampled is reduced; as a result, an improved signal representation can be achieved. By, for example, integrating, aliasing is avoided. Such manipulation (e.g. with an analogue filter) prior to sampling can be referred to as signal “shaping”.

In a particularly advantageous embodiment of the invention, after the signal is converted to a series of samples, it is subjected to a sparsification operation that causes said event to be temporally compressed. By compressing the event in this manner, it will span/occupy fewer samples (sample windows), allowing a more accurate estimation of noise behavior within its boundaries. This aspect of this invention is, for example, illustrated in FIG. 4, in which a suitable linear (energy-proportional) filtering operation is depicted in block 402—which may, for instance, reduce the temporal span of the event from a width of ca. 1000 sample windows to a width of the order of ca. 20 sample windows. It should be noted that such sparsification is the antithesis of event “stretching”, e.g. as performed in U.S. Pat. No. 5,307,299, in which the event is converted into an extended step, with the attendant problem of “random walk” in the associated noise. It is also different to the approach in WO 2003/040757 A2, for example, which processes the event “as is”, without attempting to compress or stretch it. One way to achieve the inventive sparsification is to filter the incoming signal with a discrete-time transformation of the continuous-time transfer function:

D(s)=(1+sτ _(h))(1+sτ _(l))

in which τ_(h) and τ_(l) are time constants that are chosen to maximize signal-to-noise ratio (SNR), and s=jω (where ω indicates frequency, and j=√{square root over (−1)}). Employing a matched pole-zero discretization method then yields a FIR (Finite Impulse Response) filter:

${\hat{D}(z)} = \frac{\left( {1 - {^{\frac{Ts}{\tau_{h}}}z^{- 1}}} \right)\left( {1 - {^{\frac{Ts}{\tau_{l}}}z^{- 1}}} \right)}{\left( {1 - ^{\frac{Ts}{\tau_{h}}}} \right)\left( {1 - ^{\frac{Ts}{\tau_{l}}}} \right)}$

where Ts is the sampling period, and z corresponds to discretized s. The output of this filtering operation yields a result such as that shown in block 404 of FIG. 4, in which the original pulse event has been compressed into a form resembling a Dirac delta function. This is advantageous in that:

-   -   The number of samples to be estimated (within the pulse) is         reduced;     -   Concurrently, more samples become available for estimation         purposes between subsequent pulses.

The event may, for example, be a pulse in the signal, or a step on the signal (e.g. a flank of a block), or an edge followed by a decay time. If it is known that the signal is a convoluted signal, the signal may be deconvoluted either before sampling (using for example electrical integrators and/or differentiators) or by passing the sampled signal through a filter.

The noise prediction model may comprise: linear interpolation, extrapolation, autoregressive modeling (AR modeling), ARMA modeling, or a method based on Linear Optimum Gap Interpolation (LOGI).

The modeling may be a modeling using a fixed set of parameters (for example using fixed values for Δ₁ and Δ₂), or may use a variable set of parameters, for example using values for Δ₁ and Δ₂ that depend on the time of earlier noise (the signal before t=T).

It is noted that the number of samples may depend on the moment of time that a previous or following event occurs: when the period is small, only a small number of samples is used, while for long periods the number of samples may be limited to a maximum number.

In an aspect of the invention an apparatus is equipped with an X-ray or secondary electron detector and a programmable processor for processing the data of said detector, the processor programmed to perform any of the preceding methods.

This aspect describes a charged particle apparatus, for example a Scanning Electron Microscope (SEM) or an apparatus using an X-ray source, equipped with, for example, a SDD and a processor for processing the signal produced by the detector.

In an embodiment the charged particle apparatus in which a sample is irradiated is an apparatus where a focused beam of energetic electrons irradiates the sample, in response to which X-rays and/or secondary electrons are emitted by the sample to be detected by the detector.

It is well-known that X-ray analysis of a sample can be done in a SEM using a beam energy of, for example, 10 keV or more.

The invention is now elucidated using figures in which identical reference numerals refer to corresponding features.

To that end:

FIG. 1A schematically shows a SDD;

FIG. 1B schematically shows a detail of FIG. 1A;

FIG. 2 schematically shows an electrical scheme of a FET amplifier part of the SDD;

FIG. 3 schematically shows the output signal of the SDD after the charge amplifier;

FIG. 4 schematically shows a workflow according to the method;

FIG. 5 schematically shows a Bode plot of an ARMA model; and

FIGS. 6^(a)-6^(d) schematically show how the signal can be interpolated.

FIG. 1A schematically shows a SDD.

A SDD is a silicon wafer (or part thereof) 10, showing a volume of high purity, or at least showing little recombination sides, between a first side 11 and a second side 18. Side 11 comprises the anode 16 and side 18 comprises the cathode 19. Electrodes of any electron/hole pairs generated in the volume between these two sides will drift to the anode and the holes to the cathode(s). Side 11 shows at a first side 11 a central electrode 12 forming the drain of a FET. An electrode 13 surrounding the central electrode forms the gate of the FET, and electrode 14 surrounding electrode 13 forms the source of the FET. The FET is shielded from the rest of the silicon wafer by a shield electrode 15 surrounding electrodes 12, 13 and 14, both laterally and ‘inside’ the wafer. The anode is connected to the gate of the FET (connection not shown in FIG. 1A).

Surrounding the anode a number of concentric electrodes 17-i are formed. The innermost of these concentric electrodes is connected to a voltage close to the anode voltage, the successive rings 17-i connected to voltages increasing from slightly above the anode voltage for the innermost of these electrodes to a voltage close to or equal to the cathode voltage for the outermost electrode.

The ring electrodes 17-i cause a field inside the wafer that guides all the electrons from the electron/hole pairs to the anode, the anode being only a small structure and thus showing only a small capacitance with respect to the cathode.

It is noted that, in working, a voltage difference is applied between the anode and the cathode. Hereby the capacitance of the anode with respect to the cathode is reduced. SDDs with an anode capacitance of 0.15 pF in working are commercially available.

FIG. 1B schematically shows a detail of the SDD shown in FIG. 1A.

FIG. 1B shows the part from the center until the anode. Here the connection between anode 16 and the gate of the FET is schematically shown as a metallization 21 Side 18 is the side sensitive to radiation. Underneath this surface the sensitive volume 20 is shown. X-rays incident on the sensitive surface penetrate into the volume and generate in this volume a number of electron/hole pairs. The amount of electron/hole pairs depends on the energy of the photon. In normal operation the number of photons is such, that each event can be detected separately, and thus the number of electron/hole pairs per event, that is: per incident photon.

Charge accumulates on the anode forcing the voltage of the anode to become more and more negative (with respect to the cathode) until a reset of the anode is caused by resetting the anode with, for example, a reset diode (not shown).

Alternatively leakage current from the drain of the FET to its gate can be used to compensate for the average charge accumulation.

It is noted that often a feedback capacitor is integrated on the SDD, connecting the anode to an output, but that this capacitor can also be placed outside the SDD.

FIG. 2 schematically shows an electronic representation of a (part of a) SDD.

The electronic representation shows the SDD used in a charge amplifier configuration. The parts within box 200 are part of the SDD wafer as shown in FIGS. 1A and 1B, the other parts are external to the SDD wafer.

The SDD comprises a cathode 201 and an anode 202, a FET 203 of which the gate is internally connected to the anode 202, a feedback capacitor 205 of which one side is connected to the anode 202, and a reset element in the form of diode 204 of which the cathode is connected to the anode 202. Connected to outputs of the SDD are its cathode, the source and drain of the FET, the side of the feedback capacitor not connected to the anode 202, and the anode of the reset diode. The external connections of the cathode 201 and the source of the FET are tied together to ground potential. The drain of the FET is connected to an amplifier 206. The output of the amplifier is connected to the feedback capacitor on the SDD and thus a charge amplifier is formed. Further reset logic 207 is connected to the output of the amplifier, which produces a pulse to the anode of the reset diode, as a result of which the SDD is reset.

It is mentioned that, when the FET is used as a source follower, and where the voltage between drain and gate V_(dg) varies, the detector can operate in so-called “continuous reset mode”, in which the reset logic is not active, or not even present, and the drain/gate voltage of the FET generates a (voltage dependent) leakage current that compensates the induced (average) anode/cathode current

Not shown, but necessary for operating the detector, are electronics for biasing the anode 202, the drain of the FET, and the concentric rings 17-i. It is noted that the voltages for the concentric rings can be derived from a resistive network integrated on the SDD between its anode and its cathode.

It is noted that the output of the amplifier is connected to further electronics and logic to determine the pulse height of the charge amplifier resulting from an incident photon.

In Application note AN-SDD-003: Amptek Silicon Drift Detectors (http://www.amptek.com/pdf/ansdd3.pdf), more specifically in FIG. 10 and associated text, the noise of this circuit is discussed.

FIG. 3 schematically shows the output signal of the SDD after the charge amplifier (206 in FIG. 2).

The output signal, typically a voltage, shows a number of steps, for example steps 301 and 302, separated by an interval, for example interval 303. These steps are the result of a photon impinging on the diode. The height of the step varies, and is a measure for the energy of the photon. Clearly visible is the noise on the signal between the steps, with a peak-to-peak value 304. It is further shown that, when the signal exceeds a predetermined level, the charge amplifier is reset, resulting in a drop of the signal 305.

FIG. 4 schematically shows the method according to the invention.

In the boxes showing horizontal and vertical axis, the horizontal axis schematically shows the time axis, the vertical axis schematically shows the amplitude of the signal.

Box 400 shows the signal shown in FIG. 3 after filtering, in this case differentiating (high-pass filtered). The filtering lowers the dynamic range of the signal to slightly more than the dynamic range of one step (event), and thus lowers the constraint on the ADC sampling the signal.

Box 402 shows sparsification of the (sampled) signal, resulting in a (temporally) compressed signal shown in box 404. This specific sparsification step—a filter operation that in this specific case compresses the signal temporally—results in an improved performance of the algorithm.

Box 404 shows the compressed signal after the filtering action shown in box 402, the signal split in two streams: one stream going to box 406 and one to summing node 416. In this compressed signal the pulse is clearly detectable, detected at moment t=T.

Box 406 schematically shows the action where part of the data surrounding the pulse, the data from t=(T−Δ₁) to t=(T+Δ₂), is deleted.

Box 408 schematically shows the data stream after deleting the data from t=(T−Δ₁) to t=(T+Δ₂). It is noted that this data only comprises noise, as any signal to which the pulse significantly contributes is deleted (indicated by the scissors of box 406).

Box 410 shows the identical box as box 408 for convenience.

Box 412 schematically shows the action of determining what data to use for the interpolation in the gap, find interpolated and/or extrapolated data using said data to use for the interpolation and a model, and then fill the gap with the thus found data. This box schematically shows the result of an interpolation action based on a model using data present in the data S(t) using samples sampled before t=(T−Δ₁) and/or after t=(T+Δ₂).

Box 414 shows an example of data retrieved by the action of box 412. This is thus an estimate of the noise contribution N(t) in the gap.

Box 416 shows that the noise contribution N(t) is subtracted from the signal S(t) for t=(T−Δ₁) to t=(T+Δ₂).

Box 418 is the result of the subtraction, and represents an estimate of the pulse of box 404 minus the noise contribution shown in box 414.

Box 420 schematically shows a filtering (integration) of the signal of box 418.

Box 422 shows the resulting signal after the filtering of box 420. From this signal the step height can be derived.

The method described here is based on a transformation of the input signal such that it can easily be split in a signal component (an x-ray detection component) and a stationary correlated noise component. This correlated noise component is subsequently used to improve the prediction of the energy content of the x-ray detection component.

The key to and a novelty of the method described here is that the transformed signal is stationary. This in contrast with for example the earlier mentioned method described in EP2653892A1 pulse processor mentioned above. This allows us to “train” a fixed model (box 412) that is able to make a prediction, based on adjacent noise components, of the noise that is present in the x-ray detection components. Subtraction of the predicted noise component from the x-ray detection component improves the resolution of the x-ray spectrum. We note that, because the model is trained based on system specific data, system imperfections that induce noise correlations are automatically compensated for.

FIG. 5 schematically shows a Bode plot of an ARMA model, said model used to estimate the noise contribution in the gap. The ARMA model may be trained with the noise signal before the pulse occurred. Preferably it is trained on a-priori knowledge of the noise, most preferably off-line. It is noted that the training results (the model to be used) depend on noise properties of electronics, the dynamics of the signal (for example the width of the signal), etc. Therefore best results are obtained when a model is trained for each detector and using a signal as representative for a real signal as possible (or, better: with many samples as representative as possible).

FIGS. 6^(a)-6^(d) schematically show how the signal can be interpolated.

Using this ARMA model and the signal surrounding the gap (shown in FIG. 6^(a) ), an estimate based on the data preceding the pulse (schematically shown in FIG. 6^(b) ) and an estimate based on data following the pulse (schematically shown in FIG. 6^(c) ) is determined, and using weight factors these two estimates are summed to form the estimate of the noise signal as shown in FIG. 6^(d) .

It is noted that the before mentioned ARMA modeling can thus result in a method where the model is constantly changed, and thus the model can trained for optimum performance.

It is further noted that the before mentioned ARMA modeling is only one example of many implementation that can be used.

Best results are obtained when the optimum model is used for the noise. This is best done by “training” the model until said optimum (or a solution close to that) is found. Inventors found a training method that was of special interest for this invention: the linear optimum gap interpolation (LOGI). LOGI uses a signal without events (steps), and defines a left part, a middle part and a right part. The middle part has a similar length (time or number of samples) as the part that is taken out in box 408 or FIG. 6^(a) . The trick is now to find a solution that, using the left and the right parts, forms a reconstruction of the middle part that deviates as little as possible from the actual middle part. Training is best done using a large number of realistic samples.

Mathematically this is expressed as follows:

Assume the (sampled) signal is denoted as a vector x_(1..m), x_(m+1..k) and x_(k+1) representing the left, middle and right interval (part/segment) respectively. Denoting vector y as the known (concatenated) intervals, and s the unknown interval, the optimum gap interpolator W in the least mean square sense is an (m+n)·k matrix given by minimizing

J=

∥s−W ^(T) y∥ ²

Differentiation of this equation with respect to the elements of W and equating to zero, the solution to this problem satisfies:

${\underset{\underset{\Sigma}{}}{\; {yy}^{T}}W} = \underset{\underset{Q}{}}{\; {sy}^{T}}$

It can be seen that Σ is the autocorrelation matrix of y, and Q is a (m+n)·k matrix which relates each of the k unknown sample values to the available measurements contained in y. With R_(n) the autocorrelation function of x_(i), the structure of the two matrices then expands to:

$\Sigma = \begin{pmatrix} R_{0} & \cdots & R_{m - 1} & R_{m + k} & \cdots & R_{m + k + n - 1} \\ \vdots & \ddots & \vdots & \vdots & \ddots & \vdots \\ R_{m - 1} & \cdots & R_{0} & R_{k + 1} & \cdots & R_{m + k} \\ R_{m + k} & \cdots & R_{k + 1} & R_{0} & \cdots & R_{n - 1} \\ \vdots & \ddots & \vdots & \vdots & \ddots & \vdots \\ R_{m + k + n - 1} & \cdots & R_{m + k} & R_{n - 1} & \cdots & R_{0} \end{pmatrix}$ and $Q = \begin{pmatrix} R_{m} & R_{m + 1} & \cdots & R_{m + k - 1} \\ \vdots & \vdots & \; & \vdots \\ R_{1} & R_{2} & \cdots & R_{k} \\ R_{k} & R_{k - 1} & \cdots & R_{1} \\ \vdots & \vdots & \; & \vdots \\ R_{k + n - 1} & R_{k + n - 2} & \cdots & R_{n} \end{pmatrix}$

The thus found estimators are defined (dependent) by the dynamics of the noise and the lengths of the known and unknown intervals.

Using the matrix Σ for the left part of the formula, and the matrix Q for the right part, this reduces to

W=Σ⁻¹Q

The interpolation for pulse (event) j is given (predicted) by:

ŝ^(j)=W_(k,m,n) ^(T)y^(j)

It is noted that, although the memory requirements for LOGI are much higher than the requirements for ARMA modelling, the required memory can be dramatically reduced by sparsification of the data.

It is further noted that other methods/models that can be used for the interpolation are described in handbooks such as:

-   -   Box, G. et al.,“Time Series Analysis: Forecasting & Control”,         4th edition, Wiley, ISBN. ISBN: 978-0-470-27284-8.     -   Hyndman, R. et al., (2014). “Forecasting: principles and         practice”, OTexts (Oct. 17, 2013) ISBN-10: 0987507109. 

We claim as follows:
 1. A method for analyzing an analogue signal comprising randomly spaced events, the event having an event height, the method comprising: converting the signal to a series of samples S(t), with t the moment of sampling, thereby forming a sampled, discrete time signal, detecting the presence of an event, the event detected at t=T, estimating the event height using a number of samples preceding the event and a number of samples following S(T), using a model (412, FIG. 5) to estimate a noise contribution N(t) for t=(T−Δ₁) to t=(T+Δ₂), the noise contribution derived from samples S(t) with t≦(T−Δ₁) and/or samples S(t) with t≧(T+Δ₂), with Δ₁ and Δ₂ predetermined or preset time periods, Δ₁ having a value such that the event has a negligible contribution to samples taken before (T−Δ₁) and Δ₂ having a value such that the event has a negligible contribution to samples taken after (T+Δ₂), estimating the event height E by integrating the series of samples from (T−Δ₁) to (T+Δ₂) minus the noise contribution for said samples, E=Σ _(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)S(t)−Σ_(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)N(t)=Σ_(t=(T−Δ) ₁ )^(t=(T+Δ) ₂)[S(t)−N(t)].
 2. The method of claim 1 in which the event is a step or a pulse.
 3. The method of claim 1 in which the sampled signal is subjected to a sparsification operation that causes said event to be temporally compressed.
 4. The method of claim 1 in which, before the signal is converted to a series of samples, the signal is filtered.
 5. The method of claim 4 in which the filtering of the analogue signal comprises differentiating and/or integrating.
 6. The method of claim 1 in which the conversion of the signal comprises an analogue-to-digital conversion.
 7. The method of claim 1 in which the model to predict noise comprises interpolation using S(T−Δ₁) and S(T+Δ₂), interpolation using more than two points, autoregressive (AR) modeling, ARMA modeling using samples S(t) for t≦(TΔ₁) and/or t≧(T+Δ₂), or Linear Optimum Gap Interpolation, or combinations thereof.
 8. The method of claim 7 in which the model uses parameters, and the parameters are changed according to the signal preceding the moment of the pulse, t=T.
 9. The method of claim 1 in which Δ₁ is based on the time between the event and an earlier event and/or Δ₂ is determined based on the time between the event and a following event and/or form of the event.
 10. The method of claim 1 in which the randomly spaced events are steps resulting from the integration of randomly spaced pulses.
 11. The method of claim 1 in which the signal is the signal of a semiconductor X-ray detector, a Silicon Drift Detector, an acoustic detector, a hydrophone, a scintillator detector or a superconducting bolometer.
 12. An apparatus equipped with an X-ray or secondary electron detector and a programmable processor for processing the data of said detector, the processor programmed to perform the method of claim
 1. 13. The apparatus of claim 12 in which a sample is irradiated with a focused beam of energetic electrons, in response to which X-rays and/or secondary electrons are emitted by the sample to be detected by the detector.
 14. The method of claim 2 in which the sampled signal is subjected to a sparsification operation that causes said event to be temporally compressed.
 15. The method of claim 2 in which the model to predict noise comprises interpolation using S(T−Δ₁) and S(T+Δ₂), interpolation using more than two points, autoregressive (AR) modeling, ARMA modeling using samples S(t) for t≦(T−Δ₁) and/or t≧(T+Δ₂), or Linear Optimum Gap Interpolation, or combinations thereof.
 16. The method of claim 15 in which the model uses parameters, and the parameters are changed according to the signal preceding the moment of the pulse, t=T.
 17. The method of claim 2 in which, before the signal is converted to a series of samples, the signal is filtered.
 18. The method of claim 17 in which the filtering of the analogue signal comprises differentiating and/or integrating.
 19. The method of claim 2 in which Δ₁ is based on the time between the event and an earlier event and/or Δ₂ is determined based on the time between the event and a following event and/or form of the event.
 20. The method of claim 2 in which the randomly spaced events are steps resulting from the integration of randomly spaced pulses. 